home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / GraphicViewers / pCD / Source / Controller.h next >
Text File  |  1993-03-27  |  2KB  |  83 lines

  1.  
  2. #import <appkit/appkit.h>
  3.  
  4. /*  pCD_Types defines ov_Tags, is_Tags, ppag_Tags, and iwd_Tags (the
  5.  *  values of which must match Tags in nib files), and ovImageArray.
  6. */
  7. #import "pCD_Types.h"
  8.  
  9.  
  10. @interface Controller:Object
  11. {
  12.     // for "internal" ids (those which are not IB-connected)
  13. #    define intr_id id
  14.     intr_id overviewId;        // id of active overview
  15.  
  16.     id    ov_10x2_Id;        // wide overview
  17.     id    ov_6x7_Id;        // standard overview
  18.     id    ov_2x12_Id;        // thin (and tall) overview
  19.     enum    ov_Tags overviewLayoutTag;
  20.  
  21.     SavePanel *sp;
  22.     id    saveAccessory;
  23.     id    saveMatrix;
  24.     int    saveTo;
  25.     PrintPanel *pp;
  26.     id    printAccessory;
  27.     id    printMatrix;
  28.     int    printWhich;
  29.     int    printPagination;
  30.     char    *volumeDir;
  31.     id    photoWindow;
  32.     intr_id    infoPanel;
  33.     id    pCD_Reader;
  34.     id    readStatusPanel;
  35.     id    readStatusField;
  36.     id    prefsPanel;
  37.     id    prefsResolutionMatrix;
  38.     id    prefsSizeMatrix;
  39.     id    prefsLayoutMatrix;
  40.     id    prefsPaginationMatrix;
  41.     id    prefsSharpenSwitch;
  42.     id    prefsNGammaSwitch;
  43.     enum is_Tags    globImageSize;
  44.     int    globImageResolution;
  45.     BOOL    globSharpenImage;
  46.     BOOL    globNextGamma;
  47.  
  48.     int    pasteCounter;        // so Pastes get unique window titles
  49.     
  50.     // array of ids matching all the overview images.
  51.     int    ovImageCount;
  52.     ovImageArray    ovImageIds;
  53.     int    overviewReadMax;    // max to read into ovImageIds
  54.  
  55. }
  56.  
  57. - readOverview;
  58. - saveTo:sender;
  59. - printSel:sender;
  60. - changeSaveType:sender;
  61. - changePrintType:sender;
  62. - (BOOL)shouldRunPrintPanel:aView;
  63. - loadOverviewNib:(enum ov_Tags)overviewTag andSave:(BOOL)saveDefault;
  64. - openPCD:sender;
  65. - (int)nextPasteCounter;
  66.  
  67. // actions that cause windows to appear
  68. - showInfoPanel:sender;
  69. - showPrefsPanel:sender;
  70. - showOverviewWindow:sender;
  71. - showImage:(int)pictNumber atSize:(enum is_Tags)imageSizeWanted
  72.                  atRes:(int)imageResolutionWanted;
  73.  
  74. // preference panel actions
  75. - setPrefImageResolution:sender;
  76. - setPrefImageSize:sender;
  77. - setPrefNextGamma:sender;
  78. - setPrefOverviewLayout:sender;
  79. - setPrefPagination:sender;
  80. - setPrefSharpen:sender;
  81.  
  82. @end
  83.